package cn.ziroom.system.mapper;

import java.sql.Timestamp;
import java.util.List;

import cn.ziroom.system.domain.Message;

public interface MessageMapper {

	int add(Message msg);
	
	Message getById(Integer id);
	
	List<Message> getByFunction(String functionCode);
	List<Message> getByContract(String contractCode);
	List<Message> getByHouse(String houseCode);
	List<Message> getByRoom(String roomCode);
	List<Message> getByStatus(String status);
	List<Message> getByTime(Timestamp t);
	
	//所有的条件都在message对象中
	List<Message> getList(Message msg);
	
	int delById(Integer id);

}
